/************************************************************************************
 * @File name   :      DealerMacServiceImpl.java
 *
 * @Author      :      Wu Bin
 *
 * @Date        :      2011-6-17
 *
 * @Copyright Notice: 
 * Copyright (c) 2014 DMS, Inc. All  Rights Reserved.
 * This software is published under the terms of the DMS Software
 * License version 1.0, a copy of which has been included with this
 * distribution in the LICENSE.txt file.
 * 
 * 
 * ----------------------------------------------------------------------------------
 * Date                          Who              Version               Comments
 * 2011-6-17 上午11:26:20             Wu Bin          1.0             Initial Version
 ************************************************************************************/
package com.cap.bts.framework.common.service.impl;

import java.util.List;

import javax.annotation.Resource;

import com.cap.bts.framework.common.dao.IDealerMacDao;
import com.cap.bts.framework.common.dto.DealerQueryDto;
import com.cap.bts.framework.common.dto.DealerQueryResultDto;
import com.cap.bts.framework.common.dto.MacQueryDto;
import com.cap.bts.framework.common.dto.MacQueryResultDto;
import com.cap.bts.framework.common.service.IDealerMacService;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.cap.bts.framework.common.exception.AppException;

/**
 *
 */
@Transactional(rollbackFor = AppException.class)
@Service
public class DealerMacServiceImpl implements IDealerMacService {

    @Resource(name = "dealerMacDao")
    IDealerMacDao dealerMacDao;
    
    /** 
     * overridden:
     * @Date        :      2011-6-17
     * @see com.cap.bts.gdms.service.IDealerMacService#queryDealerWithPaging(com.cap.bts.gdms.dto.DealerQueryDto)
     **/
    @Override
    public List<DealerQueryResultDto> queryDealerWithPaging(DealerQueryDto dealerQueryDto)
        throws AppException {
        return dealerMacDao.queryDealerWithPaging(dealerQueryDto);
    }

    /** 
     * overridden:
     * @Date        :      2011-6-17
     * @see com.cap.bts.gdms.service.IDealerMacService#queryMacWithPaging(com.cap.bts.gdms.dto.MacQueryDto)
     **/
    @Override
    public List<MacQueryResultDto> queryMacWithPaging(MacQueryDto macQueryDto) throws AppException {
        return dealerMacDao.queryMacWithPaging(macQueryDto);
    }

}
